using System;
using System.ComponentModel;
using System.Drawing;
using System.Text;
using System.Data;
using System.Xml;
using System.Xml.Linq;
using System.Threading;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using CEDebugCF;

namespace CEDebugCF_WinFormTestCS
{
    public partial class form1 : Form
    {
        public form1()
        {
            InitializeComponent();
        }

        private void cmdRetailMsg_Click(object sender, EventArgs e)
        {
            string message = txtMessage.Text;
            bool assert = false;
            if (chkAssertion.Checked == true)
                assert = true;
            CEDebugCF_DebugMacros.RetailMsg(assert, message);
        }

        private void cmdDebugMsg_Click(object sender, EventArgs e)
        {
            string message = txtMessage.Text;
            bool assert = false;
            if (chkAssertion.Checked == true)
                assert = true;
            CEDebugCF_DebugMacros.DebugMsg(assert, message);
        }

        private void cmdErrorMsg_Click(object sender, EventArgs e)
        {
            string message = txtMessage.Text;
            bool assert = false;
            if (chkAssertion.Checked == true)
                assert = true;
            CEDebugCF_DebugMacros.ErrorMsg(assert, message);
        }

        private void cmdAssertManaged_Click(object sender, EventArgs e)
        {
            string message = txtMessage.Text;
            bool assert = false;
            if (chkAssertion.Checked == true)
                assert = true;
            CEDebugCF_DebugMacros.AssertMsgCS(assert, message);
        }

        private void cndTrace_Click(object sender, EventArgs e)
        {
            string message = txtMessage.Text;
            bool assert = false;
            if (chkAssertion.Checked == true)
                assert = true;
            CEDebugCF_DebugMacros.Trace(assert, message, (int)numUpDown.Value);

        }
    }
}